all: emailsynch
bin/main.o:src/main.cpp bin/Log.o bin/RemoteSource.o bin/LocalSource.o bin/Manager.o bin/MyDate.o src/Help.h
	g++ `pkg-config --cflags --libs vmime` -c src/main.cpp -o bin/main.o
bin/MyDate.o: src/MyDate.h src/MyDate.cpp
	g++  -c src/MyDate.cpp -o bin/MyDate.o
bin/Log.o: src/Log.h src/Log.cpp
	g++  -c src/Log.cpp -o bin/Log.o
bin/RemoteSource.o: src/Account.h src/ActionsWithFiles.h src/File.h src/LocalAdress.h src/Log.h src/MyCert.h src/MyDate.h  src/RemoteSource.cpp src/LocalSource.h
	g++ `pkg-config --cflags --libs vmime` -c src/RemoteSource.cpp -o bin/RemoteSource.o
bin/LocalSource.o:  src/Account.h src/ActionsWithFiles.h src/File.h src/LocalAdress.h src/Log.h src/MyCert.h src/MyDate.h  src/LocalSource.cpp
	g++  -c src/LocalSource.cpp -o bin/LocalSource.o
bin/Manager.o:  src/Account.h src/ActionsWithFiles.h src/File.h src/LocalAdress.h src/Log.h src/MyCert.h src/MyDate.h  src/RemoteSource.h src/LocalSource.h
	g++  -c src/Manager.cpp -o bin/Manager.o
emailsynch: bin/main.o bin/Log.o bin/RemoteSource.o bin/LocalSource.o bin/Manager.o bin/MyDate.o
	g++ `pkg-config --cflags --libs vmime`  bin/main.o bin/Log.o bin/RemoteSource.o bin/LocalSource.o bin/Manager.o bin/MyDate.o -o emailsynch
clean:
	rm bin/* emailsynch
install:
	cp emailsynch /bin/emailsynch
	cp emailsynch /usr/bin/emailsynch
rev:
	make clean && make && make install
test: test/test.o bin/TestManager.o bin/RemoteSource.o bin/LocalSource.o bin/Manager.o bin/MyDate.o bin/Log.o
	g++ `pkg-config --cflags --libs vmime`  bin/test.o bin/TestManager.o bin/RemoteSource.o bin/LocalSource.o bin/Manager.o bin/MyDate.o bin/Log.o  -o test/test
	

TestManager.o: TestManager.h TestManager.cpp Manager.h File.h RemoteFile.h RemoteSource.h LocalSource.h
	g++ `pkg-config --cflags --libs vmime`  -c TestManager.cpp

test/test.o:test/test.cpp src/Account.h src/ActionsWithFiles.h src/File.h src/Help.h src/LocalAdress.h src/LocalSource.h src/Log.h src/Manager.h src/MyDate.h src/RemoteAdress.h src/RemoteSource.h
	g++ `pkg-config --cflags --libs vmime`  -c src/Account.h src/ActionsWithFiles.h src/File.h src/Help.h src/LocalAdress.h src/LocalSource.h src/Log.h src/Manager.h src/MyDate.h src/RemoteAdress.h src/RemoteSource.h test/test.cpp
